/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.wx.entity;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * wx_user_activity_afterEntity
 *
 * 用于用户购买活动后对应所有商家的核销状态
 *
 * @author wangjianxin
 * @version 2018-10-03
 */
@Table(name="wx_user_activity_after", alias="a", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="user_id", attrName="userId", label="user_id"),
		@Column(name="user_open_id", attrName="userOpenId", label="user_open_id"),
		@Column(name="activity_id", attrName="activityId", label="activity_id"),
		@Column(name="business_id", attrName="businessId", label="business_id"),
		@Column(name="flag", attrName="flag", label="核销状态"),
		@Column(name="after", attrName="after", label="核销状态"),
		@Column(name="order_num", attrName="orderNum", label="订单号"),
		@Column(includeEntity=DataEntity.class),
	}, orderBy="a.update_date DESC"
)
public class WxUserActivityAfter extends DataEntity<WxUserActivityAfter> {
	
	private static final long serialVersionUID = 1L;
	private String userId;		// user_id
	private String userOpenId;		// user_open_id
	private String activityId;		// activity_id
	private String businessId;		// business_id

	private Integer flag;		// business_id

	private Integer after;
	private String orderNum;

	public WxUserActivityAfter() {
		this(null);
	}

	public WxUserActivityAfter(String id){
		super(id);
	}
	
	@Length(min=0, max=200, message="user_id长度不能超过 200 个字符")
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}
	
	@Length(min=0, max=200, message="user_open_id长度不能超过 200 个字符")
	public String getUserOpenId() {
		return userOpenId;
	}

	public void setUserOpenId(String userOpenId) {
		this.userOpenId = userOpenId;
	}
	
	@Length(min=0, max=200, message="activity_id长度不能超过 200 个字符")
	public String getActivityId() {
		return activityId;
	}

	public void setActivityId(String activityId) {
		this.activityId = activityId;
	}
	
	@Length(min=0, max=200, message="business_id长度不能超过 200 个字符")
	public String getBusinessId() {
		return businessId;
	}

	public void setBusinessId(String businessId) {
		this.businessId = businessId;
	}

	public Integer getFlag() {
		return flag;
	}

	public void setFlag(Integer flag) {
		this.flag = flag;
	}

	public Integer getAfter() {
		return after;
	}

	public void setAfter(Integer after) {
		this.after = after;
	}

	public String getOrderNum() {
		return orderNum;
	}

	public void setOrderNum(String orderNum) {
		this.orderNum = orderNum;
	}
}